package com.net.controller.model;

import com.fasterxml.jackson.annotation.JsonProperty;
/**
 * 通用接口相应模型
 *
 * @author fengcheng
 * @date 2018年4月26日 下午3:16:57
 */

public class ResponseModel {

//	private Meta meta = null;
	private Integer code = null;
	private String message = null;
	private Object data = null;

	/*@JsonProperty("meta")
	public Meta getMeta() {
		return meta;
	}

	public void setMeta(Meta meta) {
		this.meta = meta;
	}*/
	
	

	@JsonProperty("data")
	public Object getData() {
		return data;
	}

	@JsonProperty("code")
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	@JsonProperty("message")
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("class ResponseModel {\n");

//		sb.append("  meta: ").append(meta).append("\n");
		
		sb.append("  data: ").append(data).append("\n");
		sb.append("  code: ").append(code).append("\n");
		sb.append("  message: ").append(message).append("\n");
		sb.append("}\n");
		return sb.toString();
	}

}
